package com.twb.auth.entity.twbRole.vo;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;

import com.twb.core.base.entity.vo.PageVo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName SearchTwbRoleVo
 * @Description /sys/twbRole/search 入参对象
 * @author DSY
 * @date 2018年11月15日 下午4:00:48
 */
@ApiModel(value = "SearchTwbRoleVo", description = "/sys/twbRole/search 入参对象")
public class SearchTwbRoleVo extends PageVo implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	private String id;

	/**
	 * 机构编码
	 */
	private String orgId;

	/**
	 * 角色名称
	 */
	private String name;

	/**
	 * 角色状态
	 */
	private String status;

	/**
	 * 角色描述
	 */
	private String description;

	/**
	 * 是否查询所有子节点（1-是，2-否）
	 */
	@ApiModelProperty(value = "是否查询所有子节点")
	private boolean isAllChildNode;

	/** 机构查询KEY */
	@ApiModelProperty(value = "机构查询KEY")
	private String orgSearchKey;

	/** 模糊查询 */
	@ApiModelProperty(value = "模糊查询")
	private String queryLikeStr;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOrgId() {
		if (StringUtils.isBlank(orgId)) {
			return null;
		}
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public boolean getIsAllChildNode() {
		return isAllChildNode;
	}

	public void setIsAllChildNode(boolean isAllChildNode) {
		this.isAllChildNode = isAllChildNode;
	}

	public String getOrgSearchKey() {
		return orgSearchKey;
	}

	public void setOrgSearchKey(String orgSearchKey) {
		this.orgSearchKey = orgSearchKey;
	}

	public String getQueryLikeStr() {
		return queryLikeStr;
	}

	public void setQueryLikeStr(String queryLikeStr) {
		this.queryLikeStr = queryLikeStr;
	}

}
